package cn.ges.movie.vo.mv

import cn.ges.movie.entity.MvScheduling
import java.math.BigDecimal

class MvSchedulingVO {

    companion object {
        fun cast(result: MvScheduling): MvSchedulingVO {
            return MvSchedulingVO().apply {
                this.id=result.id
                this.mhId=result.mhId
                this.mvId=result.mvId
                this.price=result.price
                this.startTime = result.startTime!!.epochSecond
                this.endTime = result.endTime!!.epochSecond
            }
        }
    }

    var id: Long? = null

    /**
     * 电影厅ID
     */
    var mhId: Long? = null

    /**
     * 开始时间
     */
    var startTime: Long? = null

    /**
     * 结束时间
     */
    var endTime: Long? = null

    /**
     * 电影ID
     */
    var mvId: Long? = null

    /**
     * 该场价格
     */
    var price: BigDecimal? = null

}